package com.web.contract.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author wenzhuo
 * @create 2024-05-30 2024/5/30
 */
@Data
public class Contract implements Serializable {

    public static final String MODULE = "CONTRACT";

    private Integer contractNumber;

    private Integer customerNo;

    private String customerName;

    private BigDecimal acceptedBooKRate;

    private BigDecimal costRate;

    private String buyCurrency;

    private String sellCurrency;

    private BigDecimal buyAmount;

    private BigDecimal sellAmount;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private LocalDate settlementDate;

    private Integer pendingNumber;

    private String status;

}
